package com.px.mbg.model;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.px.mbg.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 库存信息V1
 * </p>
 *
 * @author 品讯科技
 * @since 2022-09-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="Wh对象", description="库存信息V1")
public class Wh extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "来源1: bom,2:货品")
    private Integer sourceTyoe;

    @ApiModelProperty(value = "库位id")
    private Long storageId;

    @ApiModelProperty(value = "库存类型; 1->原料,2->半成品,3->成品,4->工具,5->配件")
    private String wtype;

    @ApiModelProperty(value = "编码")
    private String code;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "材质")
    private String texture;

    @ApiModelProperty(value = "宽度")
    private String width;

    @ApiModelProperty(value = "长度")
    private String longt;

    @ApiModelProperty(value = "厚度")
    private String thickness;

    @ApiModelProperty(value = "重量")
    private String weight;

    @ApiModelProperty(value = "用途")
    private String purpose;

    @ApiModelProperty(value = "当前库存数量")
    private BigDecimal balance;

    @ApiModelProperty(value = "安全库存数量")
    private BigDecimal safeBalance;

    @ApiModelProperty(value = "宽度单位")
    private String widthUnit;

    @ApiModelProperty(value = "重量单位")
    private String weightUnit;

    @ApiModelProperty(value = "长度单位")
    private String lengthUnit;

    @ApiModelProperty(value = "厚度单位")
    private String thicknessUnit;

    @ApiModelProperty(value = "安全库存数量上限")
    private BigDecimal safeBalanceUpper;

    @ApiModelProperty(value = "数据是否正确标志")
    private Integer dataAccurateTag;

    @ApiModelProperty(value = "规格")
    private String specification;

    @ApiModelProperty(value = "库存单位")
    private String stockUnit;

    @ApiModelProperty(value = "序列号")
    private String serialNumber;

    @ApiModelProperty(value = "炉批号")
    private String batchNumber;

    @ApiModelProperty(value = "组织ID")
    private Long organizationId;

    @ApiModelProperty(value = "料品id")
    private Long materialId;

    @ApiModelProperty(value = "料号")
    private String materialCode;

    @ApiModelProperty(value = "库房编码")
    private String storageCode;

    @ApiModelProperty(value = "组织编码")
    private String organizationCode;

    @ApiModelProperty(value = "组织名称")
    private String organizationName;

    @ApiModelProperty(value = "库房名称")
    private String storageName;

    @ApiModelProperty(value = "成本数量")
    private BigDecimal costNum;

    @ApiModelProperty(value = "成本单位")
    @TableField("cost_Uom")
    private String costUom;

    @ApiModelProperty(value = "存储类型")
    @TableField("storageType")
    private String storagetype;

    @ApiModelProperty(value = "u9更新时间")
    @TableField("last_modify_date")
    private LocalDateTime lastModifyDate;

    @ApiModelProperty(value = "批号创建时间")
    @TableField("created_on")
    private LocalDateTime createdOn;

}
